package com.shaw.tiger;

public class CustomerFactory {
	public static final String[] names = { "shaw", "tiger", "Tiao" };

	public static  AbstractCustomer getCustomer(String name) {
		for (String n : names) {
			if (n.equalsIgnoreCase(name)) {
				return new RealCustomer(name);
			}
		}
		return new NullCustomer();
	}
}
